repo: Fix list_objects annotations
authorDan Nicholson <nicholson@endlessm.com>
Thu, 22 Sep 2016 18:53:19 +0000 (11:53 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 22 Dec 2016 16:07:52 +0000 (16:07 +0000)
Without the element-type annotations, bindings don't know how to handle
the elements of the hash table. Since the table is created with destroy
functions, the caller does not own the elements, so transfer container
is used.

Closes: #635
Approved by: cgwalters

src/libostree/ostree-repo.c

index 35136c763a70304eb2108602f4ab55569ca15283..3b3aa6640e61492a519694ec17a36a8c215213f8 100644 (file)
@@ -3548,7 +3548,8 @@ ostree_repo_load_commit (OstreeRepo            *self,
  * ostree_repo_list_objects:
  * @self: Repo
  * @flags: Flags controlling enumeration
- * @out_objects: (out): Map of serialized object name to variant data
+ * @out_objects: (out) (transfer container) (element-type GVariant GVariant):
+ * Map of serialized object name to variant data
  * @cancellable: Cancellable
  * @error: Error
  *
@@ -3605,7 +3606,8 @@ ostree_repo_list_objects (OstreeRepo                  *self,
  * ostree_repo_list_commit_objects_starting_with:
  * @self: Repo
  * @start: List commits starting with this checksum
- * @out_commits: Array of GVariants
+ * @out_commits: (out) (transfer container) (element-type GVariant GVariant):
+ * Map of serialized commit name to variant data
  * @cancellable: Cancellable
  * @error: Error
  *